Previous | Table of Contents | Next |
III-172 Have you ever needed to change the location of the virtual root directories that IIS installs for its various services? These registry entries let you change the virtual roots for the main Web directory, the admin directory, the scripts directory, and others.
Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots |
Value Name: | /: |
Data Type: | REG_SZ |
Value: | C:\InetPub\wwwroot,1 |
III-173 | Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots | |
Value Name: | /iisadmin | |
Data Type: | REG_SZ | |
Value: | C:\NTS40\System32\inetsrv\iisadmin,,1 |
III-174 | Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots | |
Value Name: | /Scripts | |
Data Type: | REG_SZ | |
Value: | C:\InetPub\scripts,,1 |
III-175 | Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots | |
Value Name: | /srchadm | |
Data Type: | REG_SZ | |
Value: | C:\InetPub\wwwroot\srchadm,,1 |
The value after the path corresponds to the permission level. A value of 1 gives read-only permission; a value of 4 gives execute permission. A value of 5 gives both read and execute permission.
III-176 If you have an IIS-based Website and want to turn on server caching, change this entry.
Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\InetInfo\Parameters |
Add the following value under the Parameters key:
Value Name: | DisableMemoryCache |
Data Type: | REG_DWORD |
Value: | 0 |
The default value is 0, which disables server caching. Changing it to 1 enables server caching. Restart the IIS service for these changes to take effect.
III-177 If your site has heavy traffic and you are trying to squeeze every ounce of performance out of your machines, try this registry entry to speed things up a bit.
Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\InetInfo\Parameters |
Add the following value under the Parameters key:
Value Name: | ListenBackLog |
Data Type: | REG_DWORD |
Value: | 50 |
This value can range from 1 to infinity. A value of 50 works well for sites with heavy traffic.
III-178 You have many Web users with user accounts from one particular domain who continually forget to add the < domainname > parameter in front of their user names when they try to log on. To change the default logon domain so that theyll log in even when they forget to specify the domain name, change this registry entry.
Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\W3SVC\Parameters |
Add the following value under the Parameters key:
Value Name: | DefaultLogonDomain |
Data Type: | REG_SZ |
Value: | Domain Name |
Restart the service for this value to take effect.
III-179 When you install IIS, it creates an anonymous user, generally in the form of IUSR_machinename. To change that user ID, change these entries.
Hive: | HKEY_LOCAL_MACHINE |
Key: | System\CurrentControlSet\Services\W3SVC\Parameters |
Add the following value under the Parameters key:
Value Name: | AnonymousUserName |
Data Type: | REG_SZ |
Value: | valid user name |
III-180 Change this value as well.
Hive: | HKEY_LOCAL_MACHINE |
Key: | Software\Microsoft\InetStp |
Value Name: | AnonymousUser |
Data Type: | REG_SZ |
Value: | user_name |
Stop and start the IIS service for these changes to take effect.
Previous | Table of Contents | Next |